function Sprite(file, tamanho_w, tamanho_h, posicao_x, posicao_y, frames, fps)
{
	console.log("CRIANDO SPRITE POSICAO X: " + posicao_x);
	
this.image = new Image();
this.image.src=file;

this.visible = true;

this.posicao_x = posicao_x; 
this.posicao_y = posicao_y;

console.log("CRIANDO SPRITE thisPOSICAO X: " + this.posicao_x);

this.scale_x = 2;
this.scale_y = 2;

this.tamanho_w_src = tamanho_w;
this.tamanho_h_src = tamanho_h;

this.tamanho_w = this.tamanho_w_src;
this.tamanho_h = this.tamanho_h_src;

this.posicao_x_src = 0; 
this.posicao_y_src = 0;

this.current_frame = 0;

this.frames = frames;

this.fps = fps; 

this.time_per_frame = 1000/this.fps; 
	this.setFPS=function(newFPS)
	{
		this.fps = newFPS; 
		this.time_per_frame = 1000/this.fps; 
	}

this.delta_time = 0;
this.acumulated_delta_time = 0; 
this.last_draw_time = 0; 

this.draw=function(i)
{ 
	console.log("confirmando a confirmacao desenhando inimigo: " + i);
	
	console.log("posicao x " + this.posicao_x);
	
	console.log("posicao y " + this.posicao_y);
	
	console.log("tamanho w " + this.tamanho_w);
	
	console.log("tamanho h " + this.tamanho_h);
	
	
	if(this.visible)
	screen.drawImage(this.image,
	this.tamanho_w_src*this.current_frame,
	this.posicao_y_src,
	this.tamanho_w_src, 
	this.tamanho_h_src, 
	this.posicao_x, 
	this.posicao_y, 
	this.tamanho_w*this.scale_x,
	this.tamanho_h*this.scale_y);

	this.delta_time = Date.now() - this.last_draw_time;

	if(this.acumulated_delta_time > this.time_per_frame)
	{
		this.acumulated_delta_time = 0;
		this.current_frame++;
		if(this.current_frame>=this.frames)
		{
			this.current_frame = 0;
		}
	}
	else
	{
		this.acumulated_delta_time += this.delta_time;
	}

	this.last_draw_time = Date.now();
};
};